/*
 * @Author: your name
 * @Date: 2022-04-15 10:03:12
 * @LastEditTime: 2022-04-16 22:27:55
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \PWM_Demo\Libraries\seekfree_libraries\uart_dma.h
 */
/*
 * uart_dma.h
 *
 *  Created on: 2022��4��15��
 *      Author: ljg
 */

#ifndef LIBRARIES_SEEKFREE_LIBRARIES_UART_DMA_H_
#define LIBRARIES_SEEKFREE_LIBRARIES_UART_DMA_H_

#include "common.h"
#include "ifxCpu_Irq.h"
#include "IFXASCLIN_CFG.h"
#include "isr_config.h"
#include "zf_uart.h"
#include "ifxDma_Dma.h"
#include "ifxCpu.h"

extern uint8 transfer_finish_flag;
extern IfxDma_Dma_Channel dmaChn_uart_send;
extern IfxDma_Dma_Channel dmaChn_uart_receive;
extern uint8 My_Receive_Data[1];

#ifdef __cplusplus
extern "C"{
#endif

void uart1DmaInit(void);
void sendUart1Dma(uint8* data, int16 count);

#ifdef __cplusplus
}
#endif
#endif /* LIBRARIES_SEEKFREE_LIBRARIES_UART_DMA_H_ */
